from django.core.files.storage import FileSystemStorage
from django.core.files.storage import Storage

class NewStorage(Storage):

    def _open(self, name, mode="rb"):
       pass

    def _save(self, name, content, max_length=None):
        pass

    def url(self, name):
        print(f"##### 正在生成URL，文件名: {name} #####")
        return f"http://192.168.100.196:8888/{name}"